<template>
    <div class="download">
        <img src="../../assets/images/goodsDetails/ico_error.png" alt @click="close"/>
        <div class="desc">
            <p>下载密马APP,获取更多商品信息!</p>
            <p>一款专注虚拟物品交易的商城,其98%的商品支持自动发货</p>
        </div>
        <div class="bottom" @click="jumpApp">立即下载</div>
    </div>
</template>

<script>
  import {mapState} from "vuex";

  export default {
    computed: {
      ...mapState(["apps"])
    },
    methods: {
      close() {
        this.$emit("closeprompt", false);
      },

      // 判断是什么手机端  点开
      jumpApp() {
        this.$router.push({
          path: '/personal_page'
        })
      }
    }
  };
</script>

<style lang="scss" scoped>
    .download {
        height: 231px;
        background-image: url("../../assets/images/goodsDetails/group.png");
        background-size: cover;
        text-align: center;

        img {
            position: absolute;
            top: 23px;
            right: 16px;
            height: 16px;
            width: 16px;
        }

        .desc {
            padding-top: 102px;

            p:nth-child(1) {
                font-size: 16px;
                color: #2f2f2f;
                font-weight: bold;
            }

            p:nth-child(2) {
                font-size: 12px;
                color: #999999;
                font-weight: normal;
                padding-top: 8px;
            }
        }


        .bottom {
            width: 345px;
            height: 46px;
            background: #ffdd07;
            border-radius: 30px;
            color: #2f2f2f;
            font-size: 14px;
            font-weight: bold;
            line-height: 46px;
            text-align: center;
            position: absolute;
            bottom: 17px;
            margin: 0 15px;
        }
    }
</style>
